﻿@page
@{ Layout = "_Layout"; }

<el-table-draggable v-on:sort="onSort">
  <el-table row-key="id" highlight-current-row :data="groups" v-on:row-dblclick="btnEditClick">
    <el-table-column label="栏目组名称" prop="groupName"></el-table-column>
    <el-table-column label="栏目组说明" prop="description"></el-table-column>
    <el-table-column label="操作" width="160">
      <template slot-scope="scope">
        <el-link
          :underline="false"
          v-on:click="btnEditClick(scope.row)"
          type="primary">
          编辑
        </el-link>
        <el-link
          :underline="false"
          v-if="scope.row.id > 0"
          type="danger"
          v-on:click="btnDeleteClick(scope.row)">
          删除
        </el-link>
      </template>
    </el-table-column>
  </el-table>
</el-table-draggable>

<div style="height: 10px"></div>
<el-divider></el-divider>
<div style="height: 10px"></div>

<el-button
  size="small"
  type="primary"
  v-on:click="btnAddClick">
  新增栏目组
</el-button>

@section Scripts{
<script src="/sitefiles/assets/js/admin/cms/settingsChannelGroup.js" type="text/javascript"></script> }